package cn.chenfeifx.web.enums;

/**
 * Ace模式
 * <p>
 * <a href="https://cdnjs.com/libraries/ace">Themes...</a>
 * <p>
 * <a href="https://ace.c9.io/build/kitchen-sink.html">Demo</a>
 * <p>
 * 当前版本 : 1.23.4 （包括所有的js版本）
 */
public enum AceMode {

    CSS("mode-css.min.js", "ace/mode/css"),
    HTML("mode-html.min.js", "ace/mode/html"),
    JAVA("mode-java.min.js", "ace/mode/java"),
    JAVASCRIPT("mode-javascript.min.js", "ace/mode/javascript"),
    JSON("mode-json.min.js", "ace/mode/json"),
    NGINX("mode-nginx.min.js", "ace/mode/nginx"),
    PROPERTIES("mode-properties.min.js", "ace/mode/properties"),
    SQL("mode-sql.min.js", "ace/mode/sql"),
    TEXT("mode-text.min.js", "ace/mode/text"),
    XML("mode-xml.min.js", "ace/mode/xml"),
    YAML("mode-yaml.min.js", "ace/mode/yaml"),
    MARKDOWN("mode-markdown.min.js", "ace/mode/markdown");

    AceMode(String name, String value) {
        this.name = name;
        this.value = value;
    }

    private final String name;

    private final String value;

    public String getName() {
        return name;
    }

    public String getValue() {
        return value;
    }
}
